<div class="search_box">
	<div class="search_content">
		<?php if(empty($posts)):?>
		<div class="p_empty">
			<p class="p_img"><img src="/media/images/empty.png" /></p>
			<p><?php echo __("No results match")." , ".__("view")?> <a href="/" class="viewother"><?php echo __("others")?></a></p>
		</div>
		<div class="t-recommend t-slide">
			<div class="t-box-title"><?php echo __("Recommend")?></div>
			<div class="slide_box t-slide-box">
				<a class="n_prev prev" href="javascript:void(0)"><</span></a>
			    <div class="water_container slide recommend-slide">
			    	<ul class="slide-list clearfix">
			    		<?php foreach ($recommend as $rkey => $rpost):?>
					    <li class="grid">
					    	<div class="img">
								<a href="javascript:void(0)" class="showDetail" data-id="<?php echo $rpost['id']?>"><img  data-id="<?php echo $rpost['id']?>" class="showDetail lazy" data-original="<?php echo Lib_Image::getPostImage($rpost['id'],$rpost['images'],260) ?>" /></a>
							</div>
							<div class="title clearfix">
								<a href="javascript:void(0)" title="<?php echo $rpost['title'];?>" class="title_info showDetail left" data-id="<?php echo $rpost['id']?>"><?php echo $rpost['title']?></a>
							</div>
					    </li> 
						<?php endforeach;?>
				    </ul>
			    </div>
			    <a class="n_next next" href="javascript:void(0)">></a>
			</div>
		</div>
		<?php else:?>
		<div class="sh-sw-ct clearfix">
			<div class="sh-sw-sort clearfix">
				<span class="sort_text">Sort By </span>
				<select name="sort" class="sort_op">
					<option value="new" <?php if($sort=="new"):?> selected="selected" <?php endif;?>><?php echo __("New Arrival")?></option>
					<option value="popularity" <?php if($sort=="popularity"):?> selected="selected" <?php endif;?>><?php echo __("Popularity")?></option>
					<option value="review" <?php if($sort=="review"):?> selected="selected" <?php endif;?>><?php echo __("Review")?></option>
				</select>
			</div>
			<div class="search-recom">
					<?php echo __("Hot Search")?> :<a href="/search/?keyword=html5">html5</a>
					<a href="/search/?keyword=jquery">jquery</a>
					<a href="/search/?keyword=css3">css3</a>
			</div>
		</div>
		<div class="water_box">
			<div class="water_container water clearfix post_water">
				<?php echo Block_Post::post_list($posts);?>
			</div>
			<div class="list_loading" url="<?php echo $url?>"  style="display: none;" page="1" pagecount="<?php echo $pages?>">
				<div class="spinner">
				  <div class="bounce1"></div>
				  <div class="bounce2"></div>
				  <div class="bounce3"></div>
				</div>
			</div>
		</div>
		<?php endif;?>
	</div>
</div>
<input type="hidden" id="currentkeyword" value="<?php echo $keyword?>" />